package com.ExcelServer.client;

import com.ExcelServer.common.Result;
import com.ExcelServer.pojo.entity.PointsCriteria;
import com.ExcelServer.pojo.vo.ServiceInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//添加调用 业绩积分标准的客户端
@FeignClient(value = "IntegralPerformance",path = "/s2")
public interface PointsCriteriaClient {

    @PostMapping("/service/getServiceInfoByTeacherId")
    Result<List<ServiceInfoVo>> getServiceInfoByTeacherId(@RequestParam String teacherId);
    @GetMapping("/pointsCriteria/getPointsCriteriaById/{id}")
    Result<PointsCriteria> getPointsCriteriaById(@PathVariable String id);
    @PostMapping("/pointsCriteria/getPointsCriteriaByList")
    Result<List<PointsCriteria>> getPointsCriteriaByList(@RequestParam List<String> ids);

}
